package com.zgjkhis.modules.outpatient.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zgjkhis.annotation.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* @date 2019-6-4 14:49:34
*/
@Data
@NoArgsConstructor
public class AccountQueryCriteria {

    @Query
    @ApiModelProperty(value = "患者姓名/手机号")
    private String name;

    @ApiModelProperty(value = "会员id")
    private String memberId;

    @Query
    @ApiModelProperty(value = "登记开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @Query
    @ApiModelProperty(value = "登记结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "门店id,后台填充")
    private String pharmacyId;

}
